﻿Collection = require 'models/base/collection'
Wines = require 'models/wines'
config= require 'appConfig'

module.exports = class DataSources
	_wines = null 
	@GetWines: ->
		if _wines==null
			console.debug 'DataSources#fetchingWines'
			_wines= new Wines()
			_wines.url= config.api.versionRoot+'/wines'
			_wines.fetch();
			console.debug 'DataSources#WinesLoaded'
		_wines
	
		
